Random number generation functions
This section describes PKCS#11 random number generation functions.
C_SeedRandom
This function operates as specified in PKCS#11, however, it is not required to be called as the ProtectServer adapter has a hardware random generation source.
Note
This function will only operate for those tokens with the CKF_RNG
flag set in their CK_TOKEN_INFO
flags.
Synopsis
C_SeedRandom(
CK_SESSION_HANDLE hSession,
CK_BYTE_PTR pSeed,
CK_ULONG ulSeedLen
);
C_GenerateRandom
This function operates as specified in PKCS#11.
Note
This function will only operate for those tokens with the CKF_RNG
flag set in their CK_TOKEN_INFO
flags.
Synopsis
C_GenerateRandom(
CK_SESSION_HANDLE hSession,
CK_BYTE_PTR pRandomData,
CK_ULONG ulRandomLen
);